var appVue=new Vue({
  el: '#login_app',
  data: {
	loginParams:{
		account:'',
		password:''
	}
  },
  mounted:function(){
	  //模版编译/挂载之后执行
  },
  methods:{
	  login(){
		  //将this指针指向_self对象，方便后续调用
		  var _self=this;
		  //判断提交参数是否合格
		  $.ajax({
		        url: appConfig.apiUrl+"/admin/login",
		        type: "post",
		        data:_self.loginParams,
		        dataType: 'json',
		        success: function(res) {
		        	var success=res.head.success;
		        },
		        error: function() {
		            alert("超时");
		        }
		    });
	  }
  }
})